﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lesson8_code2 : MonoBehaviour
{
    // Update is called once per frame
    public float time = 0;
    void Update()
    {
        time += Time.deltaTime;
        this.transform.position = Vector3.Slerp(Vector3.left * 10 + Vector3.up * 0.1f, Vector3.right * 10, time * 0.5f);
    }
}
